import request from './index'
const requestOptions = {
  globalErrorMessage: true,
  globalSuccessMessage: true
}
// 登录接口
export function login(data?: object) {
  return request.post('login', data, { requestOptions })
}

// 获取左侧菜单
export function getLeftMenus(data?: object) {
  return request.get('menus', { requestOptions })
}
